home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / diag / tipsamp1.zip / TIPS-077.ASC < prev    next >
Text File  |  1992-07-16  |  3KB  |  53 lines

  1. TIP #:     077
  2. KEYWORDS:  Hard Drive, Partition, Disk Space
  3. UPDATED:   June, 1992
  4.  
  5.  
  6. PROBLEM:   There is not as much disk space available as there should be when
  7.            using large hard drive partitions.  How should a large hard drive
  8.            be partitioned to make optimal use of available space?
  9.  
  10. SYMPTOMS:  After re-partitioning a 320 Megabyte hard drive on my BBS computer
  11.            system, there did not seem to be as much free space available as
  12.            there was previously.  Originally, this drive was partitioned into
  13.            ten 32 megabyte partitions.  To make it easier to locate files, I
  14.            created two 32 megabyte partitions for programs, and one large
  15.            partition for ZIP files.  The large partition was just over 256
  16.            megabytes in size.  When I finished restoring the files, there was
  17.            not nearly as much free space as there had been before I began this
  18.            project.  I did some calculations, and figured that I had lost
  19.            about 7 megabytes of space!  Where did all the space go?
  20.  
  21. SOLUTION:  The solution to this problem lies in understanding the way DOS
  22.            allocates space on a hard disk.  Since the DOS FAT (File Allocation
  23.            Table) is limited to 16 bits, the maximum number of entries is
  24.            65,536 (64K).  DOS automatically adjusts the cluster size
  25.            (allocation unit), depending on the size of the partition.
  26.  
  27.            The maximum size partition that can be created using 2K clusters is
  28.            128 megabytes (2K * 64K = 128MEG).  The maximum size partition that
  29.            can be created using 4K clusters is 256 megabytes (4K * 64K =
  30.            256MEG).  The maximum size partition that can be created using 8K
  31.            clusters is 512 megabytes (8K * 64K = 512MEG).
  32.  
  33.            The problem in my case, was that I had gone from using 2K clusters
  34.            (32MEG partition), to using 8K clusters (>256MEG partition).  Even
  35.            the smallest file would use at least 8K of hard disk space, since
  36.            DOS could not allocate a smaller portion of the available space.
  37.            Disk space was wasted on most files, because DOS had to allocate
  38.            space in 8K increments, even if a smaller amount would have been
  39.            sufficient.  Hard disk defects were also removed from service in 8K
  40.            increments, wasting even more space.
  41.  
  42.            In order to use hard drive capacity most efficiently, I realized
  43.            that 2K clusters should be used.  I backed up the hard drive,
  44.            verified my backups, and partitioned the drive into three 32
  45.            megabyte partitions, and two 112 megabyte partitions.  This gave me
  46.            the flexibility I needed, and allowed DOS to use 2K clusters for
  47.            all partitions.  I now have substantially more space, without
  48.            purchasing a larger hard drive.
  49.  
  50.            NOTE:  If you decide to re-partition your hard disk to reclaim this
  51.                   wasted space, backup all data and verify the integrity of
  52.                   your backup!
  53.